package com.cn.wanxi.util;

public class Tool {
    private Tool() {
    }

    /**
     * 将中括号替换成空字符串
     *
     * @param value
     * @return
     */
    public static String replace(String value) {
        return value.replace("[", "").replace("]", "");
    }

    /**
     * 将数组转换为字符串，并且以逗号给开
     *
     * @param arr
     * @return
     */
    public static String arrToString(String[] arr) {
        StringBuilder str5 = new StringBuilder();
        for (int i = 0; i < arr.length; i++) {
            str5.append(arr[i]).append(Path.SPLIT);
        }
        String aa = str5.toString();
        return aa.substring(0, aa.length() - 1);
    }

}
